<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<%@ include file="../../header.jsp"%>
<meta charset="UTF-8" />
<style>

	.glyphicon-remove{
		display: none;
	}
	
	.list-group-item{
		position: relative;
	}
	.list-group-item:hover>span{
		position: absolute;
		top:0;
		right:0;
		display: block;
		cursor: pointer;
	}
</style>
<script>
	$(".mkbanner >li:eq(1)").addClass("active");
	$(function(){
		$(".glyphicon-remove").click(function(){
			var id = $(this).attr("data-h");
			$.post(ctx+"/topic/comment/del",
					{id:id},
					function(result){
						result_(result);
					}
				);
		});
	});
</script>
<div class="container">
	<div class="row">
	<div class="col-sm-12">
		<ol class="breadcrumb">
		  <li><a href="#">专题</a></li>
		  <li><a href="#" class="active">评论列表</a></li>
		</ol>
	</div>
	</div>
	<div class="row">
		<c:forEach items="${comments }" var="bean">
		<a class="list-group-item">
			${bean.content }
			<span class="glyphicon glyphicon-remove" title="删除" data-h="${bean.id }"></span>
		</a>
		</c:forEach>
	</div>
</div>